﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using BOHVote.DAL;

namespace BOHVote.BLL
{
    public static class OtherClass
    {
        public static DataSet getJobRank()
        {
            OtherProvide oc = new OtherProvide();
            return oc.getJobRank();
        }

        public static int DeleteJobRank(string JobRankID)
        {
            OtherProvide oc = new OtherProvide();
            return oc.DeleteJobRank(JobRankID);
        }

        public static int AddJobRank(string JobRankName, string JobRankLevel, string Status)
        {
            OtherProvide oc = new OtherProvide();
            return oc.AddJobRank(JobRankName, JobRankLevel,Status);
        }

        public static int UpdateJobRank(string JobRankID, string JobRankName, string JobRankLevel, string Status)
        {
            OtherProvide oc = new OtherProvide();
            return oc.UpdateJobRank(JobRankID,JobRankName, JobRankLevel, Status);
        }

        public static DataSet getAllJobRank()
        {
            OtherProvide oc = new OtherProvide();
            return oc.getAllJobRank();
        }

        public static DataSet getJobRankByID(string JobRankID)
        {
            OtherProvide oc = new OtherProvide();
            return oc.getJobRankByID(JobRankID);
        }

        public static DataSet getJobRank(string JobRankLevel)
        {
            OtherProvide op = new OtherProvide();
            return op.getJobRank(JobRankLevel);
        }

        public static DataSet getJobRanks(string JobRankLevel)
        {
            OtherProvide op = new OtherProvide();
            return op.getJobRanksByLevel(JobRankLevel);
        }

        public static string getJobRankLevelByJobRanK(string JobRankID)
        {
            OtherProvide op = new OtherProvide();
            return op.getJobRankLevelByJobRanK(JobRankID);
        }

        public static DataSet getLanguageType()
        {
            OtherProvide op = new OtherProvide();
            return op.getLanguageType();
        }

        public static string getJobRankName(string JobRankID)
        {
            OtherProvide op = new OtherProvide();
            return op.getJobRankName(JobRankID);
        }
        public static string getLastApplyDate(string IDCard)
        {
            OtherProvide op = new OtherProvide();
            return op.getLastApplyDate(IDCard);
        }

        #region <<  外语管理  >>
        public static string getLanguageName(string language)
        {
            OtherProvide op = new OtherProvide();
            return op.getLanguageName(language);
        }

        public static DataSet getAllLanguage()
        {
            OtherProvide op = new OtherProvide();
            return op.getAllLanguage("");
        }

        public static DataSet getLanguageByID(string ID)
        {
            OtherProvide op = new OtherProvide();
            return op.getAllLanguage(ID);
        }

        public static int InsertLanguage(string LanguageCode, string LanguageName, string status)
        {
            OtherProvide op = new OtherProvide();
            return op.InsertLanguage(LanguageCode, LanguageName, status);
        }

        public static int DeleteLanguage(string ID)
        {
            OtherProvide op = new OtherProvide();
            return op.DeleteLanguage(ID);
        }

        public static int UpdateLanguage(string LanguageCode, string LanguageName, string status, string ID)
        {
            OtherProvide op = new OtherProvide();
            return op.UpdateLanguage( LanguageCode,  LanguageName,  status,  ID);
        }
        #endregion

        #region <<  下拉列表  >>

        /// <summary>
        /// get Dict display name by value and dict name
        /// </summary>
        /// <param name="dictValue"></param>
        /// <param name="dictName"></param>
        /// <returns></returns>
        public static string getDictDisplayByValue(string dictValue, string dictName)
        {
            OtherProvide op = new OtherProvide();
            return op.getDictDisplayByValue(dictValue, dictName);
        }

        public static DataSet dstgetApplyType()
        {
            OtherProvide op = new OtherProvide();
            return op.getApplyType();
        }

        public static DataSet dstGetComputerResult()
        {
            OtherProvide op = new OtherProvide();
            return op.dstGetComputerResult();
        }

        public static DataSet dstGeteducationlevel()
        {
            OtherProvide op = new OtherProvide();
            return op.dstGeteducationlevel();
        }

        public static DataSet dstGetFixedJob()
        {
            OtherProvide op = new OtherProvide();
            return op.dstGetFixedJob();
        }

        public static DataSet dstGetSpecialityLevel()
        {
            OtherProvide op = new OtherProvide();
            return op.dstGetSpecialityLevel();
        }

        public static DataSet dstGetForeignLanguageResult()
        {
            OtherProvide op = new OtherProvide();
            return op.dstGetForeignLanguageResult();
        }

        public static DataSet dstGetGender()
        {
            OtherProvide op = new OtherProvide();
            return op.dstGetGender();
        }

        public static DataSet dstGetAwardsLevel()
        {
            OtherProvide op = new OtherProvide();
            return op.dstGetAwardsLevel();
        }

        public static DataSet dstGetAwardsRank()
        {
            OtherProvide op = new OtherProvide();
            return op.dstGetAwardsRank();
        }
        public static DataSet dstGetSpecialitPersonalRank()
        {
            OtherProvide op = new OtherProvide();
            return op.dstGetSpecialitPersonalRank();
        }

        public static DataSet dstGetApplyStyle()
        {
            OtherProvide op = new OtherProvide();
            return op.dstGetApplyStyle();
        }

        public static string getApplyStyleDisply(string value)
        {
            OtherProvide op = new OtherProvide();
            return op.getApplyStyleDispley(value);
        }

        public static  DataSet dstGetApplyEvaluation()
        {
            OtherProvide op = new OtherProvide();
            return op.dstGetApplyEvaluation();
        }
        #endregion
    }
}
